package library_system.model;

import java.util.Objects;

/**
 * @author haomin
 * @date 2022/04/05 22:05
 **/
public class Record {
    public int reid;
    public int rid;
    public int bid;
    public String borrowedAt;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Record record = (Record) o;
        return reid == record.reid;
    }

    @Override
    public int hashCode() {
        return Objects.hash(reid);
    }
}